﻿using System;
using SlimDX;

namespace InsTron
{
    static class Constants
    {
        public const int PlatformSize = 40;
        public const float SegmentSize = 4.0f;
        public const float StartingPositionShift = SegmentSize * (PlatformSize / 2.0f - 2.0f);
        public const float MaxDistance = SegmentSize * PlatformSize / 2.0f;
        public const float BaseBikeSpeed = 20.0f;
        public const float BoostFactor = 1.5f;
        public const float BrakeFactor = 0.5f;
        public const long StartDelay = 3000;

        public static readonly Color4 InnerSkyColor = new Color4(1.0f, 0.6f, 0.7f, 0.7f);
        public static readonly Color4 OuterSkyColor = new Color4(1.0f, 0.3f, 0.5f, 0.5f);
        public static readonly Color4 PlatformLightColor = new Color4(1.0f, 0.3f, 0.8f, 0.9f);

        //bike size-related params
        public const float TurningDistance = 2.44f;
        public const float BikeLength = 3.0f;
        public const float BikeHalfWidth = 0.55f;
        public static float BikeFrontSideAngle = (float)Math.Tan(BikeHalfWidth / BikeLength);
        public static float BikeDiagonalLength = (float)Math.Sqrt(Math.Pow(BikeHalfWidth, 2) + Math.Pow(BikeLength, 2));



        public static int SCENE = 2;
    }
}
